
---@class CustomLookAtHandler:ActionHandlerBase
CustomLookAtHandler = class(ActionHandlerBase)

function CustomLookAtHandler:Execute()
    self.base.Execute(self);
    ---@type UnityEngine.Transform
    self._self = self:GetGameData(ECustomDataName.SelfTrans);
    ---@type UnityEngine.Transform
    self._enemy = self:GetGameData(ECustomDataName.TargetTrans);
    self._self:LookAt(self._enemy);
    if self.agent.agentState:Get(ECustomStateKey.Find_target) == false then
        self:OnComplete();
    end
end